const mongoose = require('mongoose')

//登录信息表(Manager)
const AdvertisementSchema = new mongoose.Schema({
  Adimg: { type: String }, //广告图片
  Adlabel: { type: String }, //广告类型
  Adproduct: { type: mongoose.SchemaTypes.ObjectId, ref: 'Good' }, //广告产品
  Adshow: { type: Boolean },
  addtime: { type: Date, default: new Date() }, //发布时间
})

module.exports = mongoose.model('Advertisement', AdvertisementSchema)
